PEGetHandleString

Use PEGetHandleString to retrieve the text to which the string handle is pointing. The buffer will obtain the actual text. This function is used in conjunction with functions that return variable length strings. After your program allocates a buffer of sufficient size, this function moves the string from the string handle to the buffer.

C Syntax
BOOL CRPE_API PEGetHandleString (
        HANDLE textHandle,
        char FAR *buffer,
        short bufferLength );
Parameters

textHandle

Specifies the handle of the string containing the text of interest. This handle is obtained from a variable length string function.

buffer

Specifies a pointer to the buffer into which you want the string copied.

bufferLength

Specifies the length of the buffer in bytes, including the terminating null byte. This value should be identical to the length of the string obtained by the variable length string function.

Returns
Remarks
VB Syntax
Declare Function PEGetHandleString Lib "crpe32.dll" (ByVal textHandle _
As Long, ByVal Buffer As String, ByVal BufferLength As Integer) As Integer
Delphi Syntax
function PEGetHandleString (
    textHandle: HWnd;
    buffer: PChar;
    bufferLength: integer
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com